<% provide(:title, @user.name) %>
<div class="row">
  <aside class="large-3 columns">
    <section>
      <%= render 'user_inf', user: @user %>
    </section>
    <section>
      <%= render 'user_team', user: @user %>
    </section>
    <% if current_user?(@user) && @invitations.any? %>
      <section>
	<%= render 'user_invitations' %>
      </section>
    <% end %>
    <% if current_user?(@user) && @applies.any? %>
      <section>
	<%= render 'user_applies' %>
      </section>
    <% end %>
  </aside>
  <div class="large-9 columns">
    <section>
      <% if @user.has_team?%>
	<%= render 'teams/team_duels', team: @user.team %>
      <% end %>
    </section>
    <section>
      <% if @posts.any? %>
	<%= render 'users/user_posts', posts: @posts %>
      <% end %>
    </section>
  </div>
</div>
